//
//  DetailViewController.m
//  Version1.0_RectiveCocoa
//
//  Created by 吴可高 on 2018/1/20.
//  Copyright © 2018年 吴可高. All rights reserved.
//

#import "DetailViewController.h"
#import "AlbumModel.h"
#import "PhotoTool.h"
@interface DetailViewController ()

@end

@implementation DetailViewController
-(void)setAlbumModel:(AlbumModel *)albumModel{
    _albumModel = albumModel;
    self.navigationItem.title = _albumModel.albumName;
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)viewDidLoad {
    [super viewDidLoad];
     self.view.backgroundColor = [UIColor whiteColor];
    [self getPhotoList];
}
-(void)getPhotoList{
    [PhotoTool getPhotoListWithAlbumModel:_albumModel complete:^(NSArray *allList, NSArray *previewList, NSArray *photoList, NSArray *videoList, NSArray *dateList, PhotoModel *firstSelectModel) {
        NSLog(@"allList = %@",allList);
    }];
}

@end
